package com.kqb.auth.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;


import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * <p>
 * 统一账户信息
 * </p>
 *
 * @author 杉果树皮
 * @since 2025-04-11
 */
@Data
@TableName("auth_account")
@ApiModel(value = "AuthAccount对象", description = "统一账户信息")
public class AuthAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "全平台用户唯一id")
    @TableId(value = "uid", type = IdType.AUTO)
    private Long uid;

    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "创建ip")
    @TableField("create_ip")
    private String createIp;

    @ApiModelProperty(value = "状态 1:启用 0:禁用 -1:删除")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "用户类型见SysTypeEnum 0.普通用户系统 1.商家端 2平台端")
    @TableField("sys_type")
    private Integer sysType;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "所属租户")
    @TableField("tenant_id")
    private Long tenantId;

    @ApiModelProperty(value = "是否是管理员")
    @TableField("is_admin")
    private Integer isAdmin;


}
